import {
	request
} from "../../request";

export function getOrderdetaillistById(id) {
	return request({
		url: `/lswms/orderdetaillist/${id}`,
		method: 'get'
	})
}


export function getOrderdetaillistPage(data) {
	return request({
		url: '/lswms/orderdetaillist/page',
		method: 'put',
		data: data
	})
}

export function putOrderdetaillist(data) {
	return request({
		url: '/lswms/orderdetaillist',
		method: 'put',
		data: data
	})
}
export function postOrderdetaillist(data) {
	return request({
		url: '/lswms/orderdetaillist',
		method: 'post',
		data: data
	})
}

export function deleteOrderdetaillist(data) {
	return request({
		url: `/lswms/orderdetaillist`,
		method: 'delete',
		data: data
	})
}
export function exportOrderdetaillist(data) {
	return request({
		url: `/lswms/orderdetaillist/export`,
		method: 'get',
		data: data,
		responseType: 'blob'
	})
}


export function getPicklist(tray) {
	return request({
		url: `/lswms/orderdetaillist/picklist/${tray}`,
		method: 'get',
	})
}



export function backToStereo(data) {
	return request({
		url: `/lswms/orderdetaillist/backToStereo`,
		method: 'post',
		data: data
	})
}

export function savePicklist(data) {
	return request({
		url: `/lswms/orderdetaillist/savePicklist`,
		method: 'post',
		data: data
	})
}
